/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package database;

import java.sql.Timestamp;

/**
 *
 * @author chau
 */
public class UserMessage {

    public static final int MESSAGE_NORMAL = 0;
    public static final int MESSAGE_MARRY = 1;
    public static final int MESSAGE_ACCEPT_MARRY = 2;
    public static final int MESSAGE_REJECT_MARRY = 3;
    public static final int MESSAGE_BIRTH = 4;
    public static final int MESSAGE_ACCEPT_BIRTH = 5;
    public static final int MESSAGE_REJECT_BIRTH = 6;
    public static final int MESSAGE_FRIEND = 7;
    public static final int MESSAGE_ACCEPT_FRIEND = 8;
    public static final int MESSAGE_REJECT_FRIEND = 9;
    private String userSend;
    private String message;
    private Timestamp time;
    private int kind;
    private int isRead;
    private boolean isDelete;

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public Timestamp getTime() {
        return this.time;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setUserSend(String userSend) {
        this.userSend = userSend;
    }

    public String getMessage() {
        return this.message;
    }

    public String getUserSend() {
        return this.userSend;
    }

    public void setKind(int kind) {
        this.kind = kind;
    }

    public void setIsRead(int isRead) {
        this.isRead = isRead;

    }

    public int getIsRead() {
        return this.isRead;
    }

    public int getKind() {
        return this.kind;
    }

    public void setDelete() {
        isDelete = true;
    }

    public boolean getIsDelete() {
        return isDelete;
    }
}
